New answers tagged

0

sorry it's working fin i just did'nt navegat to right dir


0

Building upon How to hook on customizer section expanded/active/opened event? question, perhaps you could listen for the section (or panel) expanding like this to unbind functions from the previuos section and bind them to the current section. (function ( api ) { // Wait for Customizer to be ready api.bind( 'ready', function() { // "...


0

Yes - it works fine with BS4 - no conflicts, no issues. Simple way to test is to install a vanilla WP 5.3.3, create a barebones theme with BS 4 and check the JS console for issues.


0

I fix this problems with wordpress file upload method: php file: add_action( 'wp_ajax_file_upload', 'file_upload_callbacks' ); add_action( 'wp_ajax_nopriv_file_upload', 'file_upload_callbacks' ); function file_upload_callbacks() { $arr_img_ext = array('application/pdf'); if (in_array($_FILES['file']['type'], $arr_img_ext)) { $upload = ...


0

I used the original answer and modified it to handle different post types: // Customise the Excerpt field title and description via WP translation. // Change the $post_types array to change the default Excerpt metabox title and description. The description is generic but substitutes the post_type to make it specific to the current post type. add_filter( '...


0

The main issue wasn't with any of the server or the backend, the issue was with the function itself, mainly the parameter PHPMailer. For some odd reason, you need to use PHPMailer/PHPMailer/PHPMailer or use PHPMailer/PHPMailer/PHPMailer at the top of the functions.php file.


1

jQuery is loaded by WordPress with wp_enqueue_script. The problem is Wordpress also use the below code to change the handle public function localize( $handle, $object_name, $l10n ) { if ( 'jquery' === $handle ) { $handle = 'jquery-core'; } The solution is to use the function function wpse_script_loader_tag( $tag, $handle ) { if ( 'jquery-...


Top 50 recent answers are included