WP Job Manager Category Drop-down; Change Placeholder Text Via Filter

Based on the testing that I did, the placeholder string Choose a category… cannot be filtered with the submit_job_form_fields filter, but there are still ways to change that string. One way to alter the text is to override the plugin’s default job-filters.php template with your own. Copy the default template, /wp-job-manager/templates/job-filters.php over to your theme: … Read more

medoo framework in WP plugin

medoo and other similar libraries are generic, that is they are aimed at querying some database in general and the weight of figuring out necessary queries are on you as developer. WP_Query and other WP APIs that perform requests to database are much more specific. They already contain much of that logic, which allows you … Read more

Add a plugin before main container

it looks like you’re using shortcode to execute your plugin. so instead of just echo ‘[plugin id=”1″]’; use this: echo do_shortcode(‘[plugin id=”1″]’); put this in the php file where you want it to load. For example, right above the <div id=”content”> this can be in whatever file you wish to execute the shortcode

How can I implement a notification system in wordpress?

If you look through the definition of wp_insert_post(), you’ll see do_action( ‘wp_insert_post’, $post_ID, $post, $update ); at the end of it. So you can hook into this and perform whatever task you want to after creating a post. Something like this in your theme’s functions.php or in your plugin file: do_action( ‘wp_insert_post’, ‘send_notification’); function send_notification($post_ID, … Read more

Create unique identifier that is displayed to the user and admin via Ninja Forms

Put this code into theme’s functions.php: ( for Ninja Forms 2.9.x ) function unique_code_submission( $data, $field_id ) { global $uniqueCode; if ( “string” !== gettype( $uniqueCode ) ) $uniqueCode = uniqid(); /* here goes your code to populate a field */ return $data; } add_filter( ‘ninja_forms_field’, ‘unique_code_submission’, 10, 2 ); Within above function you will … Read more

How to remove xmlns on language_attributes()?

As you can see by the end of the get_language_attributes function there is a call to apply_filters. This allows themes and plugins to change the language attributes. In your case the two xmlns tags are added, one for facebook and one for addthis. You will have to check your plugins which ones are doing this. … Read more