WordPress.org

Forums

Advanced Custom Fields
function helpers_get_dir( $file ) (1 post)

  1. artallmadge
    Member
    Posted 9 months ago #

    Would you folks consider using the plugins_url() function inside helpers_get_dir to get the directory?

    I use the following inside the helpers_get_dir function and it appears to be more simple and accurate.

    $dir = plugins_url() . '/advanced-custom-fields/';
    return $dir;

    I've changed our code for now, but would rather not have to update it every time you have a new release. Thanks for the great plugin.

    Tony

    https://wordpress.org/plugins/advanced-custom-fields/

Reply

You must log in to post.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.