Mapping multiple URLs to same page

You can use the same answer as the question you referred to (I have answered it). Here’s how you would change to pass the arguments: <?php add_action(‘init’, ‘add_my_rule’); function add_my_rule() { global $wp; $wp->add_query_var(‘args’); add_rewrite_rule(‘test\/finaldestination\/(.*)’,’index.php?pagename=about&args=$matches[1]’,’top’); } ?> Assuming ‘finaldestination’ stays the same always, and the pagename (slug) is ‘about’ (you can change both). Apply your … Read more

What is the best way to provide plugin users with a way to customized the styles

Is it possible? Yes. Option 1 Simply register and enqueue your default stylesheet. The theme stylesheet can then be used to override whatever styles you implemented. function register_my_styles() { wp_register_style( ‘default-style’, plugins_url(‘default.css’, __FILE__) ); wp_enqueue_style( ‘default-style’ ); } add_action( ‘wp_enqueue_scripts’, ‘register_my_styles’ ); Option 2 Register whatever custom options you need either on a specific plugin … Read more

Removing rules from .htaccess

Problem 1 Your hook ci_add_rules() will still run when you flush rules, so remove it first (and avoid “unsetting” non_wp_rules, you’ll break other plugins that make use of it). function ci_remove_rules() { remove_action( ‘generate_rewrite_rules’, ‘ci_add_rules’ ); $GLOBALS[‘wp_rewrite’]->flush_rules(); } Problem 2 Pretty sure you want: plugin_dir_url( ‘proxy.php’, __FILE__ ) ..instead of: plugin_dir_path( __FILE__ ) . ‘proxy.php

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