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 12404

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.

3
votes
jQuery Migrate is nothing but a dependency of the jQuery script in WordPress, so one can simply remove that dependency. The code for that is pretty straightforward: function dequeue_jquery_migrate( …
answered Jan 21 '18 by swissspidy
1
vote
The example pictures are delivered with a Content-Type: application/force-download header. Others use application/octet-stream. You can do the same in your site but you'd need to do this at the server …
answered Feb 8 '18 by swissspidy
8
votes
If you want an easy way to verify if your server meets these requirements, there's now a handy WP-CLI ext command to do so. wp ext required shows all PHP extensions necessary to run WordPress, while …
answered Jan 18 '18 by swissspidy
1
vote
I'd highly recommend to escape all values before output, e.g. echo esc_html( $retrieved_data->NAME ). The same for the image: <img src="<?php echo esc_url( $retrieved_data->icon ); ?>" /> You can read more about Securing Output in the developer handbook. …
answered Jan 31 '18 by swissspidy
1
vote
this: <?php /* Template Name: Full-width layout Template Post Type: post, page, product */ // … your code here I recommend you to check my official post about it to learn more. …
answered Feb 3 '18 by swissspidy
3
votes
If you want to wrap an HTML tag around the user display names, you can simply close and open the PHP tags: <div class="author_sidebar"> <?php if ( is_singular( 'post' ) ) { ?> <div class="foo … "><?php echo get_avatar( get_the_author_meta( 'user_email' ), 75 ); ?></div> <div class="bar"><?php echo get_the_author_meta( 'display_name' ); ?> <?php } ?> </div> …
answered Jan 22 '18 by swissspidy
1
vote
The last error can be solved by following the steps outlined at this identical question. The other errors simply mean your Google Analytics plugin needs to reauthenticate with your Google account, so …
answered Jan 30 '18 by swissspidy
0
votes
Without knowing what Realia_Post_Type_Property::get_properties() does and returns, this is a bit tricky to answer. But essentially, you want to to sort an array using PHP. Unless …
answered Feb 2 '18 by swissspidy
1
vote
The error message is pretty clear: Invalid taxonomy.. You're hooking to init to register your custom taxonomy, however you're calling get_terms( 'type' ) right away, before init is fired and therefor …
answered Mar 13 '18 by swissspidy