Support » Plugin: Add Subtitle » Custom Post Type Support

Viewing 3 replies - 1 through 3 (of 3 total)
  • castironpancake

    (@castironpancake)

    Hey, I answered my own question.

    1: Copy custom post type slug. Ex: “my_post_type”

    2: Go to Subtitles plugin file: /wp-content/plugins/add-subtitle/includes/admin/class-wpd-sub-title-admin.php

    3: Find this line of code on line 56:

    // Check for which post type we need to add the meta box
    $pages = array( 'post', 'page');

    3: Add your post type slug:

    // Check for which post type we need to add the meta box
    $pages = array( 'post', 'page', 'my_post_type');

    To anyone who reads this: When changing a plugin, it’s best practice to deactivate, then rename (I put “0_” in front of the name, so “0_Add_Subtitles”) [google how to do all this], then re-download the plugin so you can be aware of updates. Then manually update so you don’t get your modifications deleted.

    Trying to write a code that will include all post types, will post if I can.

    So, feature request, “Define Custom Post Types”, or “all” setting would be awesome!

    castironpancake

    (@castironpancake)

    Thank you for answering my question, Myself! I second this feature request!

    Plugin Author mitalideva

    (@mitalideva)

    Hi castironpancake,

    Thank you for using our plugin. The additional requirement which you are expecting, we have updated with standard code in next version. Now it will support in all custom post types. Kindly re-install plugin.

    Thank you once again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.