Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 68682

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.

2
votes
You can use the action hook save_post_{post_type}, so for the post type 'post' (blog posts) it is: save_post_post. For more info see the codex. add_action( 'save_post_post', 'sw150216_save_reading_ti …
answered Feb 15 '16 by Sören Wrede
1
vote
If you have a server side rendered block in the backend, it is rendered via the REST API endpoint /wp/v2/block-renderer/xyz/blockname. This endpoint calls your render function. In the frontend the ren …
answered Jul 24 by Sören Wrede
1
vote
parent::__construct( 'text_widget', // This should be unique 'Prakash Author Widget', array('description' => 'A Simple Author Widget') ); The first parameter is the Base ID for the widge …
answered Sep 7 '17 by Sören Wrede
-2
votes
The question was answered a few times on this site. Have a look at this answer
answered Feb 19 '16 by Sören Wrede
1
vote
This little plugin shows the user role 'author' only its own categories & posts. So you can edit it for your own post-type and taxonomy. /* Plugin Name: Show own categories Description: This plugin s …
answered Feb 10 '16 by Sören Wrede
0
votes
You create two date objects and compare with the diff() methode. $from = new DateTime( '1970-01-01' ); $to = new DateTime('today'); $years = $from->diff($to)->y; $months = $from->diff($to)->m; echo …
answered Feb 13 '16 by Sören Wrede