• How to add wp_editor Dynamically

    Add this to your php file wp_enqueue_editor(); Add this on your script after you load the wp_editor elements to your web page. tinymce.execCommand( ‘mceRemoveEditor’, false, ‘proj_desc’ ); tinymce.execCommand( ‘mceAddEditor’, false, ‘proj_desc’ ); quicktags({id : “proj_desc”});   Source: https://carlofontanos.com/loading-wp_editor-via-ajax/
    Continue reading...
  • How to Hide Certain Pages from Certain Users (WP Dashboard)

    There are instances wherein there is a need to hide some pages from certain users because we don’t want them to edit those pages. Code snippet:
    Continue reading...
  • How to Set Up Gmail SMTP

    1. Enter these data. Gmail SMTP server address: smtp.gmail.com Gmail SMTP username: full Gmail address (e.g. username@gmail.com) Gmail SMTP password: Gmail password Gmail SMTP port (TLS): 587 Gmail SMTP port (SSL): 465 Gmail SMTP TLS/SSL required: yes 2. Turn on Less secure app access. Open google account settings. Click Security on the left pane. Turn on Less secure app access. Note: Turning
    Continue reading...
  • How to Set Up Virtual Host in Localhost & Xampp

    Continue reading...
  • How to Determine the Current WordPress Version Used

    Option #1: When logged in, go to {domainname}/wp-admin/about.php – there you can see what is the current version of your WordPress site. On that page, you can also see other information such as new releases if you’re currently using an older version. 4.6.13 – Applicable between 4.6 & 5.3 – Unable to test 5.3 –
    Continue reading...
  • How to Install Multiple Xampp with Different PHP Versions

    Are you trying to install another Xampp Server with a different version for whatever reason you have and you encountered an error regarding ports? Some would say that you should edit a file, but it did not work for me. Below are the steps that fixed the error for me. Open your new Xampp control
    Continue reading...
  • How to Insert Codes to Any Plugin or Theme

    If you’re a web developer and you’re trying to modify the output of any plugin or theme without editing the plugin or theme itself, you can only if the plugin or theme developer allows you to. In order to know if you can manipulate the output, you have to find out where a particular section
    Continue reading...
  • How to Add Color Presets to Your Beaver Builder Editor

    To add predefined colors in your beaver builder’s color picker, you have to add the ff. codes to any file that get’s executed by WordPress all the time. You can create your own custom plugin. The most common file to add it is in your theme or child theme’s functions.php. Here is the code snippet:
    Continue reading...
  • How to Set-up SSL in Xampp

    First, go to your apache directory. Create a folder. Name it as crt-{your-domain}, just in case you want to create multiple ssl domains in your localhost. Go to https://shellcreeper.com/how-to-create-valid-ssl-in-localhost-for-xampp/ and follow Step 3 till the end of that tutorial. Take note that we changed the certificate folder in step 2 to cert-{your-domain}, so make sure you
    Continue reading...
  • WordPress + AJAX

    Action wp_ajax Always Returning 0 One of the common reason why this can happen is when the user is not logged in. Try adding the ff: add_action(‘wp_ajax_nopriv_extract-files’, ‘extractFiles’); Also, when you’re using jsonP, you cannot use type POST
    Continue reading...