Home Blog Page 267

Getting a List of Hooks in a WordPress Plugin

0

Here is the rewritten article:

Introduction

In WordPress, hooks are used to modify or extend the functionality of themes and plugins. They are divided into two types: actions and filters.

1. Manually Searching the Plugin Files

One of the simplest ways is searching for add_action() and add_filter() inside the plugin’s files.

Using Terminal (Linux/macOS)

grep -r "add_action" /path/to/plugin/
grep -r "add_filter" /path/to/plugin/

Using Command Prompt (Windows)

findstr /S /I "add_action" "C:\path\to\plugin\*.*"
findstr /S /I "add_filter" "C:\path\to\plugin\*.*"

Using a Code Editor

  • VS Code: Press Ctrl + Shift + F and search for add_action or add_filter.
  • Notepad++: Use Find in Files (Ctrl + Shift + F).

2. Using a Debugging Plugin

Plugins like Query Monitor can help list active hooks.

Steps to Use Query Monitor

  1. Install and activate Query Monitor.
  2. Open your website and inspect the Query Monitor panel.
  3. Navigate to the Hooks & Actions section to see executed hooks.

3. Logging Hooks with Custom Code

To capture hooks in real-time, you can log them using:

function log_all_hooks($hook) {
    error_log($hook);
}
add_action('all', 'log_all_hooks');

4. Using a Custom WP-CLI Command

WP-CLI does not provide a built-in way to list hooks, but you can create a custom command:

if (defined('WP_CLI')) {
    WP_CLI::add_command('hooks list', function() {
        global $wp_filter;
        foreach ($wp_filter as $hook => $callbacks) {
            WP_CLI::log($hook);
        }
    });
}

Running the Command

wp hooks list

Conclusion

Finding hooks in a plugin is essential for customizing or debugging WordPress functionality. Use: manual search, debugging tools, custom logging, and WP-CLI for efficient listing.

FAQs

  • Q: How do I find hooks in a WordPress plugin?
    A: Use manual search, debugging tools, custom logging, or WP-CLI for quick inspection.
  • Q: What is the difference between actions and filters?
    A: Actions allow executing custom code at specific points, while filters modify data before it is displayed.
  • Q: How do I use Query Monitor to list active hooks?
    A: Install and activate Query Monitor, then navigate to the Hooks & Actions section.

Rise of the Humanoids

Unlock the Editor’s Digest for free

Roula Khalaf, Editor of the FT, selects her favourite stories in this weekly newsletter.

The writer is former editor-in-chief of Wired magazine and writes Futurepolis, a newsletter on the future of democracy

Would a Superintelligent AI Choose a Human Form?

Imagine you’re a machine superintelligence that wants a body to move around in. Would you choose a human form?

A Kludge Rather than an Optimal Design

Biologists have no settled theory on how our bipedalism evolved, but — like everything else in biology — it’s a kludge rather than an optimal design. Moving and balancing on two limbs is an impressive engineering feat, but it is dicey on rough terrain and puts terrible pressure on a spine first evolved for quadrupeds. If we hadn’t started from four limbs, might not a centaur-like shape be better?

Humanoid Robots

Yet in the tech sector, the humanoid robot is the cultural handmaiden to another holy grail: artificial general intelligence. This week, Meta was reported to be following Tesla, Apple, and Nvidia in planning a big investment into AI-powered humanoid robots. Their initial focus will be household chores.

The Limitations of Humanoid Robots

Companies like Figure AI and Agility Robotics are already building electronic bipeds for warehousing tasks like moving goods around. But outside of quite specific applications, there’s really not much need for these machines. It’s no accident that humanoid robots and AGI are the fever dreams of nerds raised on science fiction (I say this as one of them). Both assume that the human form, whether physical or mental, is the pinnacle of evolution.

The Human Mind: A “General” Intelligence?

The human mind, however, far from being a “general” intelligence, evolved for the very specific job of operating a human body, which itself is the outcome of evolutionary compromises. Simple computers can outperform us at any number of brute-force tasks. Even our powers of abstract reasoning are constrained. Just try visualizing a nine-dimensional mathematical object or synthesizing the arguments of 100 philosophy books at once. AI can already do a better job.

The Importance of Tactile Sensitivity

And yet, we are extraordinary in other ways. Think of simple but delicate tasks like washing a wine glass, changing a nappy or placing a flower in an arrangement. Now imagine doing them with your eyes closed. Notice how little the task depends on seeing and how much relies on your skin’s astonishingly fine-grained sensitivity as well as your ability to measure tension, pressure, and weight through the muscles of your fingers, hands, and arms. Embedding a tactile sensorium in every cubic millimeter of the body is an engineering challenge orders of magnitude more difficult than vision, itself still not a fully solved problem in robotics.

Conclusion

Just as there is a “jagged frontier” in AI, where systems that excel at one task can be abysmal at a closely related one, a robot’s capabilities will probably be wildly inconsistent. Flower arranging might be possible — after all, the worst that can happen is a crushed flower — but reliable nappy changing and elder care might be forever out of reach. In short, expect robots to remain specialized.

FAQs

Q: Why limit a superintelligent AI to a human form?
A: A superintelligent AI almost certainly wouldn’t pick one body design to carry its mind around in. Why limit computational capacity to what fits inside a single skull? Or constrain mobility to what a certain set of limbs can do?

Q: What is the future of humanoid robots?
A: Expect robots to remain specialized, with varying degrees of success in different areas, but not quite reaching the versatility of humans.

Q: Can AI outperform humans in all tasks?
A: Yes, in many areas, but not in tasks that require fine-grained tactile sensitivity and adaptability to complex situations.

ChatGPT Referral Traffic to Top Publishers Remains Minimal

0

ChatGPT Referrals to Publishers: A Growing but Minor Share of Traffic

Growing but Minor Share of Traffic

ChatGPT referrals to publishers have seen a significant increase since the introduction of web search, but they still make up a minor share of overall traffic. According to recent data, referrals from ChatGPT have grown eightfold, but still account for less than 0.1% of total traffic.

Top Publishers Driven by ChatGPT

The New York Post, The Guardian, and Forbes were the top three publishers that saw the most ChatGPT-driven visits. This is likely due to their high volume of online traffic and the popularity of their content among users.

Search Engines Still Dominate

Despite the growth in ChatGPT referrals, traditional search engines such as Google, Bing, and Yahoo still drive the majority of traffic to publishers. This is not surprising, given the long-established dominance of these search engines in the online search landscape.

Key Takeaways

  • ChatGPT referrals to publishers have grown eightfold but remain under 0.1% of total traffic.
  • The New York Post, The Guardian, and Forbes saw the most ChatGPT-driven visits.
  • Traditional search engines still drive the majority of publisher traffic.

Conclusion

While ChatGPT has made a small but significant impact on publisher traffic, it is clear that traditional search engines will continue to be the primary source of traffic for publishers in the foreseeable future. As the online landscape continues to evolve, it will be interesting to track the growth of ChatGPT referrals and their potential impact on the way publishers attract and engage with their audiences.

Frequently Asked Questions

Q: How much of total traffic do ChatGPT referrals make up?
A: Less than 0.1%

Q: Which publishers saw the most ChatGPT-driven visits?
A: The New York Post, The Guardian, and Forbes

Q: Do search engines still dominate publisher traffic?
A: Yes, traditional search engines still drive the majority of publisher traffic.

Windows Notepad and Paint are still free – but the AI will cost you.

0

There’s a Price to AI, Both for Microsoft and Its Users

For years, we’ve been able to freely use all the features in Windows apps like Notepad and Paint. But those days seem to be gone. Yes, the core features are still freely accessible, but the latest AI skills? Not so much.

A Windows forum post published Thursday described the ways that Microsoft has added AI to Notepad and Paint in Windows 11. In Notepad, you can request a rewrite of the text and even specify whether you want it shorter, longer, more formal, more casual, or more humorous. In Paint, you’re able to generate images with the AI-powered Image Creator and tweak the background.

The Company Needs to Pay for Its Ongoing Research and Work on AI

The company needs to pay for its ongoing research and work on AI, as the forum post points out. It wants to encourage people to subscribe to Microsoft 365 and other apps by adding AI. And the freemium model has been expanding beyond the mobile landscape into desktop software.

Passing the Cost Along to the Consumer

For Microsoft, passing the cost along to the consumer is the obvious way to address all those goals. That’s why the company has essentially placed the AI skills for otherwise free Windows apps behind a subscription paywall.

How Does This Play Out?

Again, you can use all of the non-AI features of Notepad and Paint for free, just as always. But try to request a rewrite in Notepad or an image in Paint, and you’ll be told that you need a subscription to Microsoft 365.

How Much It Costs to Use Copilot AI with Notepad or Paint

With the increased price tags due to the inclusion of Copilot AI, you’ll have to shell out $10 a month or $100 a year for a Microsoft 365 Personal plan or $13 a month or $130 a year for a Family plan. The only feature you can still enjoy without a plan is the background removal in Paint.

Limitations of Copilot AI

Even with a subscription, there are limitations. With a Microsoft 365 Family plan, only the owner gets to use Copilot. The other members won’t have any access to AI. Plus, there’s a limit on how much AI you can use. With either plan, Microsoft grants you up to 60 AI credits each month. Any AI-related task you perform in any Microsoft app chews up a credit. Use up all 60, and you’ll have to wait until the next month. Of course, Microsoft would prefer that you upgrade to a full Copilot Pro plan to get all the AI you want at a cost of $20 a month.

Conclusion

As Microsoft continues to add AI to its key products, it’s only natural that the company charges its customers for the privilege. What Microsoft customers need to decide is whether they want to continue using these products or find alternatives that are just as capable but less expensive.

Frequently Asked Questions

Q: Can I still use the core features of Notepad and Paint for free?
A: Yes, you can still use all of the non-AI features of Notepad and Paint for free, just as always.

Q: What do I need to use AI features in Notepad and Paint?
A: You need a subscription to Microsoft 365, which costs $10 a month or $100 a year for a Personal plan or $13 a month or $130 a year for a Family plan.

Q: What are the limitations of Copilot AI?
A: With a subscription, there are limitations. With a Microsoft 365 Family plan, only the owner gets to use Copilot. The other members won’t have any access to AI. Plus, there’s a limit on how much AI you can use. With either plan, Microsoft grants you up to 60 AI credits each month. Any AI-related task you perform in any Microsoft app chews up a credit. Use up all 60, and you’ll have to wait until the next month.

OpenAI Reportedly Shifts from Microsoft to SoftBank

0

OpenAI to Shift Data Center Capacity to SoftBank by 2030

New Partnership with SoftBank to Drive Major Shift in Computing Power

OpenAI is forecasting a significant change in the next five years regarding who it relies on for most of its computing power. According to a report by The Information, by 2030, OpenAI expects to obtain three-quarters of its data center capacity from SoftBank, one of its newest financial backers. This represents a major shift away from Microsoft, its largest shareholder, which currently fulfills most of OpenAI’s power needs.

Transition Period Ahead

The change will not happen overnight. OpenAI still plans to increase its spending on Microsoft-owned data centers in the next few years. The company will need to navigate a transition period, during which it will continue to rely on its existing infrastructure while gradually shifting its resources to SoftBank.

Costs to Rise Dramatically

Increased Spending and Projections

OpenAI’s overall costs are expected to surge dramatically. The Information reports that the company projects to burn through $20 billion in cash by 2027, significantly more than the $5 billion it reportedly burned through in 2024. By 2030, OpenAI reportedly forecasts that its costs for running AI models, also known as inference, will outpace what the startup spends on training AI models.

Conclusion

The shift towards SoftBank is a significant development for OpenAI, marking a new era in its computing power infrastructure. As the company navigates this transition, it will be crucial to balance its existing relationships with its largest shareholder, Microsoft, while establishing a new partnership with SoftBank.

FAQs
Q: What is the nature of the partnership between OpenAI and SoftBank?

A: SoftBank is set to become OpenAI’s primary source of data center capacity by 2030, with the company expecting to tap into three-quarters of its computing power from SoftBank.

Q: What is the significance of this shift for OpenAI?

A: The change represents a major shift away from Microsoft, OpenAI’s largest shareholder, and marks a new era in the company’s computing power infrastructure.

Q: How will OpenAI navigate the transition period?

A: OpenAI will need to balance its existing relationships with Microsoft while establishing a new partnership with SoftBank, gradually shifting its resources to the new provider.

Apple Intelligence

0

Apple Intelligence Features Coming to Vision Pro Headset

Overview

Apple has announced that the Vision Pro headset will soon be compatible with Apple Intelligence, a new feature that combines a mix of familiar and new features. The main attraction is the Create Memory Movie feature, which uses AI to find and create a movie based on a description or voice prompt.

Create Memory Movie

The Create Memory Movie feature is designed to allow users to relive memories by entering a description or voice prompt, and Apple Intelligence will then find a photo or video that best matches that description. The resulting "memory movie" can be viewed on a large virtual screen or within a virtual environment.

Other Apple Intelligence Features

Other features of Apple Intelligence include writing tools with ChatGPT, allowing users to dictate memos or emails, create bulleted summaries, or edit the tone of a draft using AI. Smart replies will also be available, enabling users to automatically respond to messages with a tap.

Additional Features

Other features include:

  • Genmoji and Image Playground, a prompt-based image generator
  • Priority notifications and summaries
  • Image Wand, which allows users to create polished images from rough sketches
  • Natural language search in the Photos app

Release and Availability

Apple Intelligence will be part of the visionOS 2.4 update, available in developer beta today and rolling out to the general public in April. Initially, Apple Intelligence will be available only in US English, with more features and languages to be added throughout the year.

Additional Updates

visionOS 2.4 will also bring several other features to address common pain points, including:

  • An improved, easier-to-use Guest Mode
  • Two new discovery apps for discovering content: one for iPhone and another as an Apple-curated content guide within the headset

Conclusion

The integration of Apple Intelligence with the Vision Pro headset promises to revolutionize the way users interact with their memories and create new experiences. With its range of features, including the new Create Memory Movie, users will be able to relive and relive their favorite moments in a whole new way.

Frequently Asked Questions

Q: When will Apple Intelligence be available for the Vision Pro headset?
A: Apple Intelligence will be part of the visionOS 2.4 update, available in developer beta today and rolling out to the general public in April.

Q: What languages will Apple Intelligence be available in initially?
A: Apple Intelligence will be available initially in US English, with more features and languages to be added throughout the year.

Q: What is the Create Memory Movie feature?
A: The Create Memory Movie feature uses AI to find and create a movie based on a description or voice prompt, allowing users to relive memories in a new way.

Q: What are some of the other features of Apple Intelligence?
A: Other features include writing tools with ChatGPT, smart replies, Genmoji and Image Playground, priority notifications and summaries, Image Wand, and natural language search in the Photos app.

Mending the Wait: HP Ditches Long Support Call Hold Times

0

HP’s Unconventional Approach to Customer Support: The 15-Minute Wait Times

The Experiment

In an unusual attempt to improve customer tech support, HP allegedly implemented mandatory 15-minute wait times for customers calling the vendor for help with their computers and printers in certain regions. The company’s internal communications revealed that the goal was to "influence customers to increase their adoption of digital self-solve, as a faster way to address their support question."

The Experience

Callers from the United Kingdom, France, Germany, Ireland, and Italy were met with the forced holding periods. Even if the telephone support center wasn’t busy, callers would hear a message apologizing for the inconvenience and explaining the expected wait time. The system would also remind customers of their other support options and apologize for the long wait period at the 5th, 10th, and 13th minute of the call.

The Rationale

According to internal communications, the wait times were intended to encourage customers to explore digital self-solve options, such as visiting the company’s website or using virtual agents. The goal was to reduce the time it takes to resolve inquiries.

The Fallout

The mandatory support call times have since been lifted, according to a company statement. HP spokesperson Katie Derkits explained that while the company is always looking for ways to improve customer service, the feedback from customers was clear: they prioritize speaking to live customer service agents in a timely fashion. As a result, HP has decided to prioritize timely access to live phone support.

Insider Feedback

An anonymous "insider" in HP’s European operations reportedly shared their concerns about the mandatory hold times, stating that many within the company are unhappy with the measures and feel that those making the decisions do not have to deal with the customers affected.

Conclusion

HP’s experiment with mandatory wait times has come to an end, and the company has chosen to prioritize timely access to live phone support instead. While the approach may have been unconventional, it has provided valuable insights into customer preferences and the importance of timely support.

FAQs

Q: Why did HP implement mandatory wait times?
A: HP aimed to influence customers to increase their adoption of digital self-solve options, which it believes is a faster way to address support questions.

Q: Which regions were affected by the mandatory wait times?
A: The United Kingdom, France, Germany, Ireland, and Italy were among the regions affected.

Q: Why did HP lift the mandatory wait times?
A: HP received feedback from customers prioritizing timely access to live phone support over digital self-solve options, leading the company to prioritize timely access to live phone support.

Q: Are HP’s support options still available?
A: Yes, HP’s support options, including digital self-solve solutions and virtual agents, are still available.

OpenAI Uncovers Evidence of AI-Powered Chinese Surveillance Tool

0

OpenAI Uncovers Chinese Surveillance Tool Using Artificial Intelligence

New Campaign Identified

OpenAI, a leading artificial intelligence (A.I.) company, has uncovered evidence of a Chinese security operation that has built an A.I.-powered surveillance tool to gather real-time reports about anti-Chinese posts on social media services in Western countries. The company’s researchers have identified this new campaign, which they have called "Peer Review".

How the Campaign Works

According to Ben Nimmo, a principal investigator for OpenAI, the campaign uses Llama, an A.I. technology built by Meta, to gather information about anti-Chinese posts on social media platforms. This technology was made available by Meta, which open-sourced its work, allowing software developers across the globe to use it.

Growing Concerns about A.I. Surveillance

The use of A.I. in surveillance has raised growing concerns about its potential misuse. While A.I. can enable surveillance, it can also be used to identify and stop such behavior. Researchers like Nimmo believe that A.I. can be a double-edged sword, enabling both good and bad actors.

Additional Campaigns Uncovered

In its report, OpenAI also uncovered two other campaigns. The first, called "Sponsored Discontent", used OpenAI’s technologies to generate English-language posts that criticized Chinese dissidents. The second, believed to be based in Cambodia, used OpenAI’s technologies to generate and translate social media comments that drove a scam known as "pig butchering".

Conclusion

The discovery of these campaigns highlights the potential risks associated with the use of A.I. technologies. While these technologies can be beneficial, they can also be misused by malicious actors. OpenAI’s findings demonstrate the importance of responsible A.I. development and the need for strong ethical guidelines to prevent the misuse of these technologies.

FAQs

Q: What is OpenAI’s role in the discovery of these campaigns?
A: OpenAI’s researchers discovered the campaigns after identifying the use of their A.I. technologies in the code used by the malicious actors.

Q: How does the campaign "Peer Review" work?
A: The campaign uses Llama, an A.I. technology built by Meta, to gather information about anti-Chinese posts on social media platforms.

Q: What is the purpose of the campaign "Sponsored Discontent"?
A: The campaign uses OpenAI’s technologies to generate English-language posts that criticized Chinese dissidents.

Q: What is the purpose of the campaign "Pig Butchering"?
A: The campaign uses OpenAI’s technologies to generate and translate social media comments that drove a scam known as "pig butchering".

YouTube Reportedly Launching New “Premium Lite” Tier Soon

0

YouTube to Launch New “Premium Lite” Subscription Tier

New Tier Aims to Attract Viewers Who Mainly Watch Non-Music Videos

YouTube is close to announcing a new lower-priced “premium lite” version of its subscription service, according to Bloomberg. The new tier is expected to launch in the United States, Australia, Germany, and Thailand “soon”.

What Does the Premium Lite Tier Offer?

The premium lite tier will give users access to YouTube’s library of podcasts and how-to clips without ads, Bloomberg notes. This tier is targeted towards viewers who mainly want to watch videos other than music videos.

Pricing Unknown, but Testing Underway

It’s unknown how much the tier will cost, but YouTube is gearing up to officially roll it out after testing it in some overseas markets.

Comparison to Existing YouTube Premium

YouTube Premium costs $13.99 per month in the U.S. and lets subscribers watch anything on the platform without ads, including music videos.

Competition on the Rise

YouTube’s new tier would come amid growing competition among platforms, including Spotify and Apple Podcasts, all looking to become the go-to destination for podcast listeners.

Conclusion

The launch of YouTube’s premium lite tier is a strategic move to attract a new audience and increase competition in the streaming space. With the rise of podcasting and online content, YouTube’s new tier aims to capitalize on this trend and provide users with an affordable option to access their favorite content.

FAQs

Q: What is the premium lite tier?

A: The premium lite tier is a new subscription option that offers access to YouTube’s library of podcasts and how-to clips without ads, targeted towards users who mainly watch non-music videos.

Q: How much will the premium lite tier cost?

A: The pricing of the premium lite tier is unknown, as it is still in the testing phase and has not been officially announced by YouTube.

Q: What is the difference between the premium lite tier and YouTube Premium?

A: The premium lite tier offers access to podcasts and how-to clips without ads, while YouTube Premium offers ad-free access to all content, including music videos.

Q: When will the premium lite tier be available?

A: The premium lite tier is expected to launch in the United States, Australia, Germany, and Thailand “soon”, but an exact release date has not been announced.

Next-Level Performance and Features in a Pocket-Sized Package

0

The 7 Reasons Why the iPhone 16e is a Great Choice for Creatives

  1. The Beautiful Display
    The iPhone 16e’s 6.1-inch OLED display is a massive upgrade from the iPhone SE’s chunky bezels. This means you’ll have more screen space to view and work on your projects, and with OLED goodness, your projects will look better than ever.

  2. A18 Power
    The A18 Bionic chip is a powerhouse, providing fast performance and efficient battery life. This means you can do more, for longer, without needing to worry about your battery running out.

  3. The All-New C1 Chip
    The C1 chip is a custom-built modem that improves power efficiency, giving you more battery life. This means you can work on the go, without worrying about your phone running out of juice.

  4. Face ID Security
    The iPhone 16e’s Face ID is a more secure way to unlock your phone and verify purchases. This is especially important for creatives who work on sensitive files and need to keep their work safe.

  5. USB-C for Better Connectivity
    The iPhone 16e’s USB-C port is a welcome change from the Lightning port. This means you can connect to more devices, and do more with your phone, like charging it faster and transferring files more easily.

  6. Apple Intelligence Compatibility
    The iPhone 16e is compatible with Apple Intelligence, which can help you with tasks like image editing, copywriting, and more. This can be a useful tool for creatives who need to whip up ideas quickly or rewrite client emails.

  7. Lights, Camera, Action
    The Action button is a customizable button that can be assigned to various tasks, such as opening your favorite camera app or triggering complex workflows. This can be a game-changer for creatives who need to work quickly and efficiently.

Conclusion
The iPhone 16e is a great choice for creatives, with its beautiful display, powerful A18 chip, and improved connectivity options. Whether you’re a photographer, videographer, or graphic designer, the iPhone 16e is a solid choice.

FAQs

Q: Is the iPhone 16e better than the iPhone SE?
A: Yes, the iPhone 16e has a better display, more powerful processor, and improved connectivity options.

Q: Is the iPhone 16e compatible with Apple Intelligence?
A: Yes, the iPhone 16e is compatible with Apple Intelligence, which can be used for tasks like image editing and copywriting.

Q: Can I use the Action button to trigger complex workflows?
A: Yes, the Action button can be assigned to trigger complex workflows using Apple’s Shortcuts app.

Q: Is the iPhone 16e a good choice for creatives?
A: Yes, the iPhone 16e is a great choice for creatives, with its powerful processor, beautiful display, and improved connectivity options.