New answers tagged plugins
0
votes
Accepted
Is there a way to make [Table Of Content] plugin while not using revision data?
The only reason it's talking about revisions is so the TOC still displays when you preview a post. It's nothing to do with your problem, which is that the TOC plugins are looking at your post content, ...
0
votes
Need Old Version of plugins
Below steps helps me download any version of the plugin
Go to plugin page on WordPress site ex: https://wordpress.org/plugins/download-manager/
Open any plugin screenshot/image. It will open link ...
1
vote
Accepted
Can inactive WordPress plugins still load scripts?
Many hypotheses could be made, but the most probable ones are that the theme or a third plugin loads the script if a specific option saved in the database has a certain value. If the plugin is ...
0
votes
Anchor Jumps to Another Page
It was caused by The Header and footer builder. Thanks for putting it into perspective.
0
votes
How to Add text value in Automatically in this conditions?
This should work. Untested though.
I don't know how you get $woocomerce_wookc_text, but since you mentioned CMB, I am taking you are saving it as product meta data
function wpse405916_add_to_cart( $...
0
votes
Can inactive WordPress plugins still load scripts?
The answer is already in your question:
Curiously, the forms work when the plugin is installed and INACTIVE, but they do NOT work when the inactive plugin is DELETED.
Note: The full form code ...
1
vote
Accepted
What is the best way to cache pages on Wordpress
No, there isn't. WordPress does not provide page caching mechanisms, and has no APIs for it. There is no generic way to say example.com/page is now stale and needs recreating. Nor is there any generic ...
1
vote
Cannot get wpdb data (Error in a simple fuction)
should be a comment but can't.
your error just says that in <?php get_coin_price(BTC); ?> BTC is considered a variable but is not defined and compiler assume the variable as a string, it doesn'...
1
vote
Accepted
How to see which sites use my installed plugins (wordpress multisite)
You can list the sites a plugin has been activated on in the shell using WP CLI:
sites=$(wp site list --field=url)
for url in $sites; do
if wp plugin is-active "YOURPLUGINNAME" --url=&...
1
vote
Accepted
Cannot get wpdb data (Error in a simple fuction)
What about changing BTC to a string
<?php get_coin_price('BTC'); ?>
2
votes
Accepted
Finding the screen id of a page generated with add_menu_page
The function add_menu_page return the hook suffix that inform you about the current page.
A simple example to get the hook suffix.
public function add_menu_page() {
$page_hook_suffix = ...
0
votes
Accepted
Table of contents (TOC) plugin is not showing header tag
Even if they're not looking at revisions, all table of contents plugins are likely to only look at post_content rather than postmeta, because postmeta can be anything and it would be hard to query for ...
1
vote
Product count in archive page Title in WooCommerce
add_filter( 'woocommerce_page_title', 'add_products_number_to_category_title', 99, 1 );
function add_products_number_to_category_title($title) {
if ( ! is_product_category() ) {
return $...
0
votes
Remove all messages, when untrash a post
As stated before, bulk messages output based on $bulk_counts variable and can't be edited in admin_notices hook. This is strange, because they has their own html wrapping in wp-admin/edit.php without ...
0
votes
How to Get Category Name When Export Products
You should change this block of code
if ( ! empty( $m_category ) ) {
foreach ( $m_category as $id ) {
$articles[ $key ]['Category '] = $m_category;
}
}
to be something like this:
if ( ! ...
1
vote
Accepted
Use current class method inside add_submenu_page()
You're getting that error because the 5th parameter for add_submenu_page() should be a string which is the menu slug and yet you supplied a callback ([$this,'sports_info_page']). So be sure to use a ...
1
vote
Accepted
Changing labels of status filters for post grid
Here's an untested way to override it, based on my older answer:
add_action( 'init', function() {
$vars = get_object_vars(
get_post_status_object( 'draft' )
);
$vars['...
0
votes
How To Use do_shortcode with WooCommerce One Page Checkout
Here's a partial solution that has worked for me so far:
If you use the full do_shortcode() as in your example, and you also put the basic [woocommerce_one_page_checkout] shortcode (even without any ...
1
vote
how remove font to increase site speed load
You can either make a child theme, or make a plugin. Within that child theme or plugin, you'll dequeue one of the copies. If you don't have any other theme customizations, it probably makes the most ...
1
vote
How do I modify the position of a plugin?
It's always bad practise to modify a plugin file. For one thing you will lose your changes when the plugin is updated. Look to see if your plugin has been created with filters (good plugins should be)....
1
vote
Accepted
Plugin main file is constantly been fired on every website visit
Ofcourse! It always loads and runs the code in the main plugin file, that's by design and is how plugins are intended to work. Why would it work any other way? How would it know without being told ...
0
votes
Proper Way to Modify Plugin
Since it hasn't been mentioned, you can replace any function that was made pluggable. Pluggable functions look like
if (! function_exists('function_name')) {
function function_name() {
//....
0
votes
AJAX call inside plugin class is not getting to it's response function
Problem seems with build_a_boat() function. You called that function from inside a template file. Does that gets called on the desired page load?
Solution: Try to call that function from plugin root ...
Top 50 recent answers are included
Related Tags
plugins × 10326plugin-development × 1824
php × 1129
functions × 508
customization × 486
custom-post-types × 443
woocommerce-offtopic × 409
themes × 403
shortcode × 314
posts × 309
hooks × 286
javascript × 275
theme-development × 266
ajax × 263
database × 242
jquery × 237
widgets × 232
multisite × 230
filters × 226
images × 216
css × 199
actions × 199
custom-field × 179
plugin-recommendation × 168
updates × 164