View php file path under footer

Different site would mean different themes and plugins, so likely that’s it. A plugin like Query Monitor will show you the template file, as well as a lot of other helpful pieces of information.

Is there a way to get a path to the theme directory without the server name?

Yes get_template_directory: get_template_directory(): string Retrieves template directory path for the active theme. Returns an absolute server path (eg: /home/user/public_html/wp-content/themes/my_theme), not a URI. In the case a child theme is being used, the absolute path to the parent theme directory will be returned. Use get_stylesheet_directory() to get the absolute path to the child theme directory. To … Read more

wp_enqueue_script() with unknown path and maybe symlink

I think this can help you. I did something similar in one of the plugins I’m developing. static function enqueue_admin_scripts( string $hook_suffix ): void { if ( self::get_page_hook_suffix() !== $hook_suffix ) { return; } $utils_path = self::get_utils_script_path(); if ( ! empty( $utils_path ) ) { wp_enqueue_script( ‘my-plugin-utils’, $utils_path ); } } static function get_utils_script_path(): string … Read more

How to give path to files in plugins folder?

I’d create a function and then use the wp_enqueue_scripts action to add your script to the list; function load_more_scripts() { wp_enqueue_script( ‘tsw-tools-js’, // unique handle name ‘/wp-content/plugins/dl-grid-addons/includes/wp-bakery/tsw/tsw-tools/assets/js/tsw-tools.js’ // path relative to WordPress root directory ); } add_action(‘wp_enqueue_scripts’, ‘load_more_scripts’); More information can be found here: https://developer.wordpress.org/reference/functions/wp_enqueue_script/

WP-DBManager Plugin Can’t Find Mysql Path

I solved this with help from the main StackOverflow site. One of the commenters suggested that the open_basedir directive might be set in php.ini – and that was the issue. Here is the open_basedir setting: open_basedir = “/var/www/vhosts/lifering.org/:/tmp/” I created a hard link mysql (could have been a symlink) to /usr/bin/mysql in the /tmp directory … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)