Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 87314

For questions about the server-side programming language that the WordPress core, plugins and themes are written in. Questions about using PHP outside a WordPress context are off-topic but might be asked on Stack Overflow.

0 votes
Accepted

how can I call a function when time expire

php /* Plugin Name: Custom Plugin Plugin URI: Description: Adds function on cron Author: Version: 1.0 */ /* * When this plugin is activated, schedule/clear_schedule cron */ register_activation_hook …
James Valeii's user avatar
0 votes
1 answer
38 views

Return function results within shortcode

php function say_sup(){ return 'sup'; } add_shortcode( 'sup_shortcode', 'register_sup_shortcode' ); function register_sup_shortcode( $atts, $content = null) { $sup = say_sup( … php function say_sup(){ $sup = 'sup'; echo $sup; var_dump( $sup ); } add_action( 'say_sup_now', 'say_sup', 1 ); add_shortcode( 'sup_shortcode', 'register_sup_shortcode …
James Valeii's user avatar
0 votes
Accepted

Return function results within shortcode

php function say_sup(){ return 'sup'; } add_shortcode( 'sup_shortcode', 'register_sup_shortcode' ); function register_sup_shortcode( $atts, $content = null) { … php function say_sup(){ $sup = 'sup'; echo $sup; var_dump( $sup ); } add_action( 'say_sup_now', 'say_sup', 1 ); add_shortcode( …
James Valeii's user avatar
0 votes

Wordpress loop add heading before first of type

You could try a concept like the following (post your loop and I will improve the model): $state_group = 'Open Loop'; // start the loop // if posts then while $state_code = // lookup this post stat …
James Valeii's user avatar