Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Q&A

wp_enqueue_script adding conditional statement not working

August 3, 2022August 2, 2022 by Magenaut

This is the code im using in my functions file:

Categories Q&A, Wordpress Tags conditional-content, wp-enqueue-script Leave a comment

What is the correct method for determining ‘is_front_page’ when using filters such as ‘pre_get_posts’ and ‘posts_where’?

August 3, 2022August 2, 2022 by Magenaut

On my site several filters should be applied if the user is viewing the static home page. My understanding is that is_front_page() should determine if that is indeed the case.

Categories Q&A, Wordpress Tags conditional-tags, frontpage Leave a comment

Are post ID’s reliable?

August 3, 2022August 2, 2022 by Magenaut

I understand that post ID’s are unique, but are they reliable as persistent data ID’s?

Categories Q&A, Wordpress Tags id, posts Leave a comment

Add custom attributes to menu items without plugin

August 3, 2022August 2, 2022 by Magenaut

I’m trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to setup a plugin as well.

Categories Q&A, Wordpress Tags menus, navigation Leave a comment

Create custom welcome email without a plugin

August 3, 2022August 2, 2022 by Magenaut

Is there a way to customize the email content and subject for the welcome and verification emails sent during the registration process for WordPress? I’d like to hook or filter in without using a plugin or the “pluggable” feature.

Categories Q&A, Wordpress Tags email, html-email Leave a comment

How to save a translation of a plugin in “CodeStyling Localization”?

August 3, 2022August 2, 2022 by Magenaut

Hi I was translating one of my plugins in “CodeStyling Localization”. when I update my plugin my translation erased. Is there anyway to find it ? And How can I backup my translation (I don’t want to waste my time next time :))

Categories Q&A, Wordpress Tags translation Leave a comment

Change page title from plugin

August 3, 2022August 2, 2022 by Magenaut

Is possible to change page title on the fly from plugin?

Categories Q&A, Wordpress Tags init, plugins, title Leave a comment

Where is the old post permalink slug stored?

August 3, 2022August 2, 2022 by Magenaut

I published an article with permalink slug:

Categories Q&A, Wordpress Tags database, permalinks, posts, slug Leave a comment

How to change post status in hook?

August 3, 2022August 2, 2022 by Magenaut

I have similar problem as described in How to trap “Publish” button to check for meta box validation?
Answer there is to hook into save_post and change post type. How can I do it?
I try to use wp_transition_post_status but it doesn’t work for me…

Categories Q&A, Wordpress Tags plugin-development, post-status, publish Leave a comment

What characters are allowed as a shortcode tag and how should they be sanitized?

August 3, 2022August 2, 2022 by Magenaut

I am working on a plugin where the user can define shortcode tags himself. What would you suggest to allow in there? My thought is only allow ascii characters.

Categories Q&A, Wordpress Tags filters, plugins, shortcode Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,444 Page2,445 Page2,446 … Page2,571 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress