Magenaut

Magenaut

A blog about Magento Development, Magento bug fixing, and more

Skip to content
Menu
  • Home
  • Notes
  • Tutorial
  • Bug fixing
  • Extension
  • Server
  • Q&A
  • About

Tag: actions

Q&APosted onAugust 6, 2022

style_loader_tag not changing stylesheet to preload

I am trying to change rel=’stylesheet’ to rel=’preload’ using style_loader_tag but it isn’t doing something. Could anyone please tell me what is wrong with my code?

Read More
Q&APosted onAugust 6, 2022

add element with add_action to posts from a specific category ID

I just try to add some content at the bottom of each posts from a specific category but the content is added in all posts. I use a hook in GeneratePress theme. I don’t understand why it is not working. I’m not a pro with PHP to be honest (maybe it’s obvious 😅). Thanks

Read More
Q&APosted onAugust 6, 2022

I need help using pre_get_comments to limit comments in the comments admin screen

I am trying to limit the comments in the comments admin screen to:

Read More
Q&APosted onAugust 6, 2022

How to redirect user after login to a specific page?

I have a page with mixed content in three different tabs. The first tab is open access to all but the content of the last two are for logged in users only so by sending the users to login with:

Read More
Q&APosted onAugust 6, 2022

Can the wp_filter object hold multiple values with the same key

I’m trying to understand the internals of the $wp_filter object and I’m looking at the code posted by Fuxia in this question How to know what functions are hooked to an action/filter?

Read More
Q&APosted onAugust 6, 2022

remove an action hook function on a plugin from a theme

first I did my homework by checking the answer on this question and this question, both didn’t work.
after long debuging the function I want to remove is protected in 2 nested classes, and follows this path:

Read More
Q&APosted onAugust 5, 2022

How can I specify the post status of an untrashed post?

By default WordPress assigns the draft status to a post that has been untrashed. I would like to assign the pending status to posts that are untrashed.

Read More
Q&APosted onAugust 5, 2022

update_option_{$option} not working (do function after options are saved)

Below is my code for a simple plugin settings page. It works and saves an option (“EN”, “CZ”).

Read More
Q&APosted onAugust 5, 2022

remove_action: how to access to a method in an child class?

I’ve this in my main plugin file:

Read More
Q&APosted onAugust 5, 2022

I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types)

The code below works perfectly When I create a new post, an email is sent out to the email included in the function. I would…

Read More

Posts navigation

Page 1 Page 2 … Page 9 Next Page

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 141 other subscribers

Recent Comments

  • anonymous on Fix libwacom9 dependency issue when upgrade Debian
  • sreedhar on Fix libwacom9 dependency issue when upgrade Debian
  • saintnick on Fix libwacom9 dependency issue when upgrade Debian
  • ranafoul on Fix libwacom9 dependency issue when upgrade Debian
  • John Fro on UFW rule from a list of IPs

Tags

actions ajax bash block-editor categories command-line custom-field custom-post-types custom-taxonomy customization database debian files filters functions hooks images javascript linux loop menus multisite permalinks permissions php plugin-development plugins post-meta posts rest-api security shell shell-script shortcode ssh terminal text-processing theme-development themes uploads url-rewriting users woocommerce-offtopic wp-admin wp-query

© Magenaut - The Magento Astronaut