Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter amdh

    (@amdh)

    thanks.
    it solved my problem.

    Thread Starter amdh

    (@amdh)

    is there any answer?

    Thread Starter amdh

    (@amdh)

    and when i show current user capabilities, this is the output:

    
    Array
    (
        [switch_themes] => 1
        [edit_themes] => 1
        [activate_plugins] => 1
        [edit_plugins] => 1
        [edit_users] => 1
        [edit_files] => 1
        [manage_options] => 1
        [moderate_comments] => 1
        [manage_categories] => 1
        [manage_links] => 1
        [upload_files] => 1
        [import] => 1
        [unfiltered_html] => 1
        [edit_posts] => 1
        [edit_others_posts] => 1
        [edit_published_posts] => 1
        [publish_posts] => 1
        [edit_pages] => 1
        [read] => 1
        [level_10] => 1
        [level_9] => 1
        [level_8] => 1
        [level_7] => 1
        [level_6] => 1
        [level_5] => 1
        [level_4] => 1
        [level_3] => 1
        [level_2] => 1
        [level_1] => 1
        [level_0] => 1
        [edit_others_pages] => 1
        [edit_published_pages] => 1
        [publish_pages] => 1
        [delete_pages] => 1
        [delete_others_pages] => 1
        [delete_published_pages] => 1
        [delete_posts] => 1
        [delete_others_posts] => 1
        [delete_published_posts] => 1
        [delete_private_posts] => 1
        [edit_private_posts] => 1
        [read_private_posts] => 1
        [delete_private_pages] => 1
        [edit_private_pages] => 1
        [read_private_pages] => 1
        [delete_users] => 1
        [create_users] => 1
        [unfiltered_upload] => 1
        [edit_dashboard] => 1
        [update_plugins] => 1
        [delete_plugins] => 1
        [install_plugins] => 1
        [update_themes] => 1
        [install_themes] => 1
        [update_core] => 1
        [list_users] => 1
        [remove_users] => 1
        [promote_users] => 1
        [edit_theme_options] => 1
        [delete_themes] => 1
        [export] => 1
        [copy_posts] => 1
        [lfb_manager] => 1
        [edit_taqrir] => 1
        [read_taqrir] => 1
        [delete_taqrir] => 1
        [edit_others_taqrir] => 1
        [publish_taqrir] => 1
        [read_private_taqrir] => 1
        [administrator] => 1
    )
    
    • This reply was modified 6 years, 6 months ago by amdh.
    Thread Starter amdh

    (@amdh)

    I’ve assigned capabilities with this code but the problem persists:

    
    function add_theme_caps() {
        $admins = get_role( 'administrator' );
        $admins->add_cap( 'edit_taqrir' ); 
        $admins->add_cap( 'read_taqrir' ); 
        $admins->add_cap( 'delete_taqrir' ); 
        $admins->add_cap( 'edit_others_taqrir' ); 
        $admins->add_cap( 'publish_taqrir' ); 
        $admins->add_cap( 'read_private_taqrir' ); 
    }
    add_action( 'admin_init', 'add_theme_caps');
    
    Forum: Fixing WordPress
    In reply to: category problem
    Thread Starter amdh

    (@amdh)

    thanks a lot.
    resolved.

    Forum: Fixing WordPress
    In reply to: category problem
    Thread Starter amdh

    (@amdh)

    i used this code in my plugin and the problem was for this code:

    function modify_term_list($terms){
    foreach($terms as $term_index => $term_object){
    if($term_object->term_id === 83){
    unset($terms[$term_index]);
    return $terms;
    }
    }
    }
    add_filter(‘get_the_terms’, ‘modify_term_list’, 1);

    how can i change the code???

    • This reply was modified 6 years, 6 months ago by amdh.
    Forum: Fixing WordPress
    In reply to: category problem
    Thread Starter amdh

    (@amdh)

    i disabled my plugin and problem solved.

    thanks.

    Thread Starter amdh

    (@amdh)

    is there any solution?

    Forum: Fixing WordPress
    In reply to: word to wordpress
    Thread Starter amdh

    (@amdh)

    i added 2 metaboxes to my posts. one for MS word URL and one for PDF URL. is there any solution to convert automatically?

    • This reply was modified 6 years, 11 months ago by amdh.
    Forum: Fixing WordPress
    In reply to: word to wordpress
    Thread Starter amdh

    (@amdh)

    No…
    Is there any plugin?

    I added mataboxes for MS word URL but I cannot read it’s text.

Viewing 10 replies - 16 through 25 (of 25 total)