[Wed Jul 17 17:25:14.031219 2024] [php:notice] [pid 634726:tid 634726] [client 10.0.0.114:11817] WordPress database error Table ‘wordpress.fake_status’ doesn’t exist for query UPDATE fake_status SET fake_status =’0′ made by deactivate_plugins, do_action(‘deactivate_wp-page-extension/wp-page_extension.php’), WP_Hook->do_action, WP_Hook->apply_filters, wp_fake_url->deactivate, referer: https://10.0.0.61/wp-admin/plugins.php?plugin_status=all&paged=1&s
Thanks,
Larry
]]>The relevant portions of the code:
define( 'WP_USE_THEMES', false );
require_once( $_SERVER[ 'DOCUMENT_ROOT' ] . '/wp-load.php' );
require_once( $_SERVER[ 'DOCUMENT_ROOT' ] . '/wp-admin/includes/post.php' );
...
...
$a2z3_entry_post = array(
'post_type' => 'todo',
'post_title' => $a2z3_entry_POSTTITLE,
'post_content' => $a2z3_entry_POSTCONTENT,
'post_status' => 'publish',
'post_author' => 1, // the admin is the author
'comment_status' => 'closed',
'ping_status' => 'closed',
);
// this works
$a2z3_entry_post_id = wp_insert_post( $a2z3_entry_post, true, false );
// these work as well
add_post_meta( $a2z3_entry_post_id, '_status', 0, true );
add_post_meta( $a2z3_entry_post_id, '_priority', 1, true );
add_post_meta( $a2z3_entry_post_id, '_assign', -1, true );
add_post_meta( $a2z3_entry_post_id, '_deadline', '', true );
add_post_meta( $a2z3_entry_post_id, '_progress', 0, true );
// these did NOT work, a2zq3_cat_id is the category id (number), a2zq3_cat_name is the category name (string). Both are defined correctly.
wp_set_object_terms( $a2z3_entry_post_id, $a2zq3_cat_id, 'todocategories');
wp_set_object_terms( $a2z3_entry_post_id, $a2zq3_cat_id, $a2zq3_cat_name);
wp_set_object_terms( $a2z3_entry_post_id, $a2zq3_cat_id, 0);
wp_update_term( $a2zq3_cat_id, 'todocategories', array( 'name' => $a2zq3_cat_name ) );
do_action( 'add_term_relationship', $a2z3_entry_post_id, $a2zq3_cat_id, 0);
Apologies – am new to WordPress development, so might be missing something obvious here…
]]>i have 3 installs doing exact same thing:
when i include or require nested files in my theme directory, it kills customizer ability to browse themes.
i get the included/required file’s data but when i add content to these files the customizer displays ‘0’ themes when i try to browse to change to different theme.
one theme is only index (using wp_head), footer.php (using wp_footer), screenshot, styles, and two nested directories with one file each (each containing echo stmt).
would greatly appreciate help.
thank you,
]]>t now how to place <?php do_action('plugin_name_hook'); ?> in my template, I
m using a child theme of Oceanwp.Current code:
// clear cache by url post hook
do_action('ce_action_cache_by_url_cleared');
Proposed code:
// clear cache by url post hook
do_action('ce_action_cache_by_url_cleared', $url);
Virtual hugs and stay at home
]]>wpo_wcpdf_before_document
OR
wpo_wcpdf_after_document_label
I’ve tried doing a search for those strings in the PHP files. In fact, all the PHP files on my site.
But they don’t exist except in the fiels calling the do_action.
Where are these functions created? Because at the moment, it seems like magic.
]]>I was wondering can 2 new do_action hooks be added to the plugin.
I see you have a do_action for “redirection_redirect_deleted” that triggers on item delete and another one “redirection_redirect_updated” for whey item details is updated.
I’m missing a hook for “redirection_redirect_enabled” and “redirection_redirect_disabled”. I’m hooking WP Rocket cache plugin to manually delete site cache when a new redirection is created/delete/edited.
It works awesome for the 2 provided plugins but I can’t do anything for enable/disable because there are no hooks.
Is there a way you could add it?
tnx
]]>So let’s say I wrote a discord hook bot that can run based on information sent to it… This is no issue.
For example:
However, I want to latch on to 3rd party plugin and every time that function is executed, then have the bot say something in Discord.
Does it require me to or the original author to have added the function to add_action()?
So let’s say I have another plugin that I made… with
function origin_func($args)
{
//stuff
}
Do I need to:
add_action( 'origin_function_action' 'origin_func')
In either the original or new and then in the new discord plugin…
How to I check to see if that custom action is run and then have the new one run?
Thanks!
]]>I am having WP All Import 4.5.6 version and I read this article: https://www.wpallimport.com/documentation/troubleshooting/slow-imports/
But on Settings page there is no option regarding disable do_action.
Any advise?
Thanks
]]>