Blank page beyond dashboard

If the front-end of the website is still working correctly then it will likely be that your PHP memory is being exhausted due to either too many plugins and/or some plugins using too much of your PHP resources. The links in this thread should be your next port of call: http://wordpress.org/support/topic/after-log-in-screen-goes-blank

Run filter if only it was run from specific admin page ( ‘upload_dir’ changed )

Adding filter: add_filter( ‘upload_dir’, ‘change_upload_dir’, 10, 1 ); Function content: function change_upload_dir($param) { // Check for REFER $actual_page = $_SERVER[‘HTTP_REFERER’]; parse_str( parse_url($actual_page, PHP_URL_QUERY), $query_array ); if ( strpos($actual_page, ‘plugin_name.php’) ) { $mydir=”/customdir”; $param[‘path’] = $param[‘basedir’] . $mydir; } return $param; } Hope this will help Other ideas, based not on HTTP_REFERER, are appreciated 🙂

Improving this link color picker code

Create customizer.js file and put the following script in the customizer.js file (function( $ ) { “use strict”; wp.customize( ‘tcx_link_color’, function( value ) { value.bind( function( to ) { $( ‘a’ ).css( ‘color’, to ); } ); }); })( jQuery ); And enqueue your customizer.js file by using wp_enqueue_script in your customizer.php file like this … Read more

My code for creating an admin option doesn’t work

Make Sure Your Functions, Slug and Callback Functions are Unique(Means Different from any other plugin or default WordPress). Also to save options use Settings API http://codex.wordpress.org/Function_Reference/register_setting <?php add_action(‘admin_menu’, ‘add_unique_custom_options’); function add_unique_custom_options() { add_options_page(‘Global Custom Options’, ‘Global Custom Options’, ‘manage_options’, ‘unique-functions’,’unique_custom_options’); } function unique_custom_options() { ?> <div class=”wrap”> <h2>Global Custom Options</h2> <form method=”post” action=”options.php”> <?php wp_nonce_field(‘update-options’) … Read more

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